package com.senter.data.dbflow.model;

import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.ForeignKey;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
import com.senter.data.dbflow.db.DemoDataBase;

@Table(name = "person_card", database = DemoDataBase.class)
public class PersonCard extends BaseModel {

    @PrimaryKey(autoincrement = true)
    private int id;

    @ForeignKey(stubbedRelationship = true)
    private Person person;

    @Column
    private String cardNo;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
